package com.swinw.asumall.cart.service;

import com.swinw.asumall.cart.vo.Cart;
import com.swinw.asumall.cart.vo.CartItem;

import java.util.List;
import java.util.concurrent.ExecutionException;

public interface CartService {
    CartItem addToCart(Long skuId, Integer num) throws ExecutionException, InterruptedException;

    Cart getCartItem();

    void checkItem(Long skuId, Boolean check);

    void countItem(Long skuId, Integer itemCount);

    void deleteItem(Long skuId);

    List<CartItem> getCartItems();

}
